package com.xintai.approval.service.impl;

import com.xintai.approval.domain.Condition;
import com.xintai.approval.domain.NodeConfig;
import com.xintai.approval.mapper.ConditionMapper;
import com.xintai.approval.service.ConditionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConditionServiceImpl implements ConditionService {

    @Autowired
    private ConditionMapper conditionMapper;

    @Override
    public void addCondition(Condition condition) {
        conditionMapper.addCondition(condition);
    }

    @Override
    public List<Condition> SelectConditionList(Long conditionListId) {
        return conditionMapper.SelectConditionList(conditionListId);
    }

}
